package java3_16.Teacher;
//java 教师类    子类
public class JavaTeacher extends Teachers {
    public JavaTeacher(String name,int age,String sex,String teachYear){
        super.setName(name);
        super.setAge(age);
        super.setSex(sex);
        super.setTeachYear(teachYear);
    }

    public void teachJava(){
        System.out.println("我熟悉Java教学方法!");
    }
}
